<?php

class GenericDecorator {

	protected $obj;

	public function __construct ($obj) {
		$this->obj = $obj;
	}

	final public function __call ($method, $args) {
		return call_user_func_array (array ($this->obj, $method), $args);
	} 

}

?>
